#ifndef __DATABASE_H_
#define __DATABASE_H_
#include <stdio.h>
#include <stdbool.h>
//#if __WORDSIZE != 32
struct database_struct {
  int test;
  const char *dbName;
  void *db;
};
char *database_sql2str(void *db, const char *statement);
int database_sql2int(void *sql, const char *statement);
int database_last_insert_rowid(void *db);
int database_exist(void *db,
    const char *table, const char *field, const char *value);
struct database_struct *database__init(int argc, const char*const *argv);
char *database__sqlExecWithDbName(void *db, const char *msg,
    const char *dbName);
char *database__xmlSqlExecWithDbName(void *db, const char *msg,
    const char *dbName);
#endif //__DATABASE_H_
